﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using CLEX.AdminUI.ViewModel;

namespace CLEX.AdminUI.View
{
    internal partial class DatabaseCreateView : Window
    {
        public DatabaseCreateView(ViewModelBase vm)
            : this()
        {
            DataContext = vm;
            vm.CloseRequested += Vm_CloseRequested;
        }

        private DatabaseCreateView()
        {
            InitializeComponent();
        }

        private void Vm_CloseRequested(object sender, EventArgs e)
        {
            Close();
        }
    }
}
